/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-08-16 14:21:02
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-08-16 20:41:26
 * @FilePath: \后端管理系统\app\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // devServer: {
  //   proxy: {
  //     '/api': {
  //       target: 'http://localhost:3000',
  //       pathRewrite: { '^/api': '' },
  //     },
  //   },
  // },

  // devServer: {
  //   proxy: 'http://localhost:3000'
  // },

  devServer: {
    proxy: {
      '/api': {
        target: 'https://lianghj.top:8888/api/private/v1',
        pathRewrite: {
          '^/api': ''
        },
      },
    },
  },
})
